//
//  ColothesInfo.m
//  WashForU
//
//  Created by 王俊 on 15/11/29.
//  Copyright © 2015年 王俊. All rights reserved.
//

#import "ClothesInfo.h"

@implementation ClothesInfo


+(instancetype)initWithTitle:(NSString*) title andImageName:(NSString*) name andPrice:(int) price
{
    ClothesInfo *clothe        = [[ClothesInfo alloc]init];
    clothe.title               = title;
    clothe.imageName           = name;
    clothe.price               = price;//[NSString stringWithFormat:@"￥%@",price];
    clothe.backgroundImageName =([clothe.imageName  isEqual: @"袋洗图片"]) ? @"袋洗外框" : @"件洗外框";
    clothe.module              =([clothe.imageName  isEqual: @"袋洗图片"]) ? @"/袋" : @"/件";
    return clothe;
    
}

+(instancetype)initWithTitle:(NSString*) title andImageName:(NSString*) name andPrice:(int) price andDescInfo:(NSString*)desc
{
    ClothesInfo *clothe = [ClothesInfo initWithTitle:title andImageName:name andPrice:price];
    clothe.desc = desc;
    return clothe;
}


@end
